from django.urls import path, include
from rest_framework import routers
from .views import *

router = routers.DefaultRouter()
router.register('user', UserView)
router.register('role', RoleView)
router.register('menu', MenuViewSet)
router.register('dept', DeptViewSet)
router.register('post', PostView)
router.register('loginlog', LoginLogView)
router.register('operationlog', OperationLogView)
router.register('dictionary', DictionaryView)
urlpatterns = [
    path('', include(router.urls)),
    path('area/', AreaView.as_view()),
]
